export const getStorageInfoSync = function () {
    try {
        return uni.getStorageInfoSync();
    } catch (e) {
        return new Promise(resolve => {
            uni.getStorageInfo({
                complete: result => resolve(result)
            });
        })
    }
}
export const getSystemInfoSync = function () {
    try {
        return uni.getSystemInfoSync();
    } catch (e) {
        return new Promise(resolve => {
            uni.getSystemInfo({
                complete: result => resolve(result)
            });
        })
    }
}
